package org.metasketch.editor.project;

import org.metasketch.demo.project.DEMOProject;
import org.metasketch.editor.Project;
import org.metasketch.ham.project.HAMProject;

public class MultipleProject extends Project {

	HAMProject hamProject = new HAMProject();

	DEMOProject demoProject = new DEMOProject();

	public void setPath(String path) {
		super.setPath(path);
		hamProject.setPath(path);
		demoProject.setPath(path);
	}

	public HAMProject getHamProject() {
		return hamProject;
	}

	public void setHamProject(HAMProject hamProject) {
		this.hamProject = hamProject;
	}

	public DEMOProject getDemoProject() {
		return demoProject;
	}

	public void setDemoProject(DEMOProject demoProject) {
		this.demoProject = demoProject;
	}

	public boolean isDirty() {
		return hamProject.isDirty() || demoProject.isDirty();
	}

	@Override
	public void compileIndexes() {
		hamProject.compileIndexes();
		demoProject.compileIndexes();

	}

}
